<!DOCTYPE>
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="Keywords" content="惠信钱包，金融">
<meta name="description" content="描述描述描述" />
<%@include file="/WEB-INF/base/commRoot.jsp"%>
<link rel="stylesheet" href="/css/index.css"/>
<script type="text/javascript" src="/js/jquery.js"></script>
<script type="text/javascript" src="/js/view/news/newsAjaxPage.js"></script>
<script type="text/javascript" src="/js/jquery.validate.js"></script>
<script type="text/javascript" src="/js/win_layer/win_layer.js"></script>
<script type="text/javascript" src="/js/view/news/newsComment.js"></script>
<script type="text/javascript" src="/js/view/news/news.js"></script>
<script type="text/javascript" src="/js/rsa/RsaDataUtil.js"></script> 
<script type="text/javascript" src="/js/rsa/RSA.js"></script> 
<script type="text/javascript" src="/js/rsa/BigInt.js"></script> 
<script type="text/javascript" src="/js/rsa/Barrett.js"></script> 
<%-- <script type="text/javascript" src="/js/view/static/static.js"></script>
<script type="text/javascript" src="/js/view/user/slides.js"></script> --%>

<title>详情</title>
<style>.nav_r{ display:block;}
.nav_r a,
.nav_r span,
.nav_r em{ display:inline-block;}

.recent_comments  .btn_greyb {
    background-position: 0px -270px;
    width: 50px;
}

</style>
</head>
<body>
<input id="module" type="hidden" value="<s:property value='#application.module'/>">
<input id="empoent" type="hidden" value="<s:property value='#application.empoent'/>">
<input id="userName" type="hidden" value="<s:property value='#session.UserId_session_info'/>">
<input id="userId" type="hidden" value="<s:property value='#session.User_session_uid'/>">
<input id="canDiscuss" type="hidden" value="<s:property value='newsInfo.canDiscuss'/>"/>
<input id="commentId" type="hidden"/>
<input id="pageSign" type="hidden"/>
<!--header-->
<%@include file="/head.jsp"%>
<!--/header-->
<!--main-->
<div class="main_bg">
	<div class="news_main clearfix">
        <div class="news_in_left">
             <h3>热度排行</h3>
             <ul class="clearfix">
             	<s:iterator var="newsInfos" value="newsInfos" status="i">
             		<s:if test="#i.count <= 3">
             	    <li><span class="top3"><s:property value="#i.count"/></span><a href="javascript:void(0);" onclick="showNewsDetail('<s:property value="#newsInfos.newsId" />','<s:property value="#newsInfos.type" />')" class="n_con"><s:property value="#newsInfos.title"/></a></li>
             	    </s:if>
             		<s:else>
             		<li><span class="top_d"><s:property value="#i.count"/></span><a href="javascript:void(0);" onclick="showNewsDetail('<s:property value="#newsInfos.newsId" />','<s:property value="#newsInfos.type" />')" class="n_con"><s:property value="#newsInfos.title"/></a></li>
             		</s:else>
             	</s:iterator>
<!--                 <li><span class="top3">2</span><a href="javascript:void(0);" class="n_con">从李嘉诚注资P2P看网贷前途</a></li> -->
<!--                 <li><span class="top_d">4</span><a href="javascript:void(0);" class="n_con">从李嘉诚注资P2P看网贷前途</a></li> -->
             </ul>
             <%-- <div class="news_two_code">
                 <dl class="d_app clearfix">
                 	<dt><img src="<s:url value="/images/wx_qb.png"/>" width="85" height="85" alt="下载惠卡贷app"></dt>
                    <dd>
                    	<h4>下载惠信钱包APP</h4>
                        <p>随时关注钱包余额收益，理财产品收益，利率更是高达同期银行利率56倍，支持随时转让变现。</p>
                    </dd>
                 </dl>	
                 <dl class="d_app clearfix">
                 	<dt><img src="<s:url value="/images/wx_qb.png"/>" width="98" height="98" alt="关注惠卡贷微信"></dt>
                    <dd>
                    	<h4>关注惠信钱包微信</h4>
                        <p>关注微信，成就理财，时时了解最新动态</p>
                    </dd>
                 </dl>
             </div> --%>
        </div>
        <div class="news_in_detail">
            <div class="annoou_first clearfix">
                <div class="share_link">
                	<span class="l" style="margin-top:2px;">分享到&nbsp;&nbsp;</span>
                	<!-- JiaThis Button BEGIN -->
					<div class="jiathis_style l">
						<a title="分享到QQ空间" class="jiathis_button_qzone"></a>
						<a title="分享到新浪微博" class="jiathis_button_tsina"></a>
						<a title="分享到QQ好友" class="jiathis_button_tqq"></a>
						<a title="分享到人人网" class="jiathis_button_renren"></a>
						<a title="分享到开心网" class="jiathis_button_kaixin001"></a>
						<a href="http://www.jiathis.com/share?uid=1936773" class="jiathis jiathis_txt jiathis_separator jtico jtico_jiathis" target="_blank"></a>
						<a class="jiathis_counter_style"></a>
					</div>
					<!-- JiaThis Button END -->
                </div>
                <span class="fgx">|</span> 
                <div style="float:right;">
                    <a href="javascript:addNewsPraise('<s:property value="newsInfo.newsId" />', '<s:property value="newsInfo.type" />');" title="赞" class="zan" id="<s:property value='newsInfo.newsId' />_zan">
                        <i class="zan_icon"></i>
                        <span class="zan_views"><s:property value="newsInfo.praise" /></span>
                    </a> 
                </div>
            </div>
            <div class="announcement_detail_tit">
                <h4 id="title"><s:property value="newsInfo.title" /></h4>
                 <p id="summary" style="display: none;"><s:property value="newsInfo.summary" /></p>
                <p class="date"><s:date name="newsInfo.createTime" format="YYYY年MM月dd日HH时mm分ss秒"/></p>
            </div>
            <%-- <h5><s:property value="newsInfo.summary"/></h5> --%>
            <p class="paragraph">${requestScope.newsInfo.content} </p>
            <!-- <h5>惠信消费分红计划</h5> -->
            <%-- <p class="paragraph"><s:property value="newsInfo.content" /></p> --%>
          <p class="signature" style="text-align: right;">新锐网团队<br/><s:date name="newsInfo.createTime" format="YYYY年MM月dd日"/></p>
          <div class="articles_related">
              <s:if test="newsInfo.preNewsInfo != null">
                   <p class="up_down_artic">上一篇：<a href="#" onclick="showNewsDetail('<s:property value="newsInfo.preNewsInfo.newsId" />','<s:property value="newsInfo.preNewsInfo.type" />')" class="linkArt"><s:property value="newsInfo.preNewsInfo.title"/></a></p>
              </s:if>
          	  <s:if test="newsInfo.nextNewsInfo != null ">
          	       <p class="up_down_artic">下一篇：<a href="#"  onclick="showNewsDetail('<s:property value="newsInfo.nextNewsInfo.newsId" />','<s:property value="newsInfo.nextNewsInfo.type" />')" class="linkArt"><s:property value="newsInfo.nextNewsInfo.title"/></a></p>
          	  </s:if>
              
              <p class="related_read">相关阅读</p>
              <ul class="_relaArt">
              <s:iterator value="page.records" id="news" status="rowstatus">
                  <li>
                  	  <a href="javascript:void(0);" onclick="showNewsDetail('<s:property value="#news.newsId" />','<s:property value="#news.type" />')" ><s:property value="#news.title" /></a>
                  </li>
              </s:iterator>
              </ul>
          </div>
          <div class="users_comments">
          	   <s:hidden name="newsInfo.newsId" id="newsId" />
          	   <s:hidden name="newsInfo.type" id="type" />
          	   <s:if test="newsInfo.type != 1">
	               <form action="" method="get" class="clearfix" style="padding:0; margin:0;">
	               	   <h3 class="clearfix">
	                   		<span class="tit">用户评论</span>
	                        <span class="words" id="wordsNum">0/150</span>
	                   </h3>
	                   <textarea name="newsWords" id="newsWords" cols="" rows="" maxlength="150" onkeyup="wordsNum()" class="textarea_comments"></textarea>
	                   <!--登录后--> 
	                   <div class="com_btn">
	                       <%-- <span class="tips l">提示文字</span> --%> <a class="btn_red" onclick="addComment()">发表评论</a>
	                   </div>
	                   </form>
                   </s:if>
            <div class="recent_comments" id="commentsList"> </div>
        </div>
        </div>
   </div>
</div>
<!--/main-->
<!--footer-->

<!--/footer-->

<div class="popup_take dis_no" style=" width:400px; margin-left:-200px;" id="loginForm">
	<h3><span>登录新锐网</span><a href="javascript:void(0);" class="close"></a></h3>
	<div class="pop_login_bg">
		<ul class="login_ul clearfix">
			<li class="login_input">
				<input id="accNametip" autocomplete="off" maxlength="32" value="请输入惠信号/手机号码" type="text" class="input">
				<input id="accName" autocomplete="off"name="userRegister.accName"  maxlength="32" style="display:none;" onblur="accNametipfun()" onfocus="hideNameLable();" type="text" class="input">
				 <span class="icon_user"></span>
				<p id="nameMsg" class="err_tips" style="display:none;">请输入惠信号/手机号码！</p></li>
			<li class="login_input">
				<input id="pwdtip" autocomplete="off" maxlength="16" value="请输入您的登录密码" type="text" class="input" >
				<input id="pwd" autocomplete="off"  maxlength="16" onpaste="return false" style="display:none;" onblur="pwdtipfun()" onfocus="hidePwdLable();" type="password" class="input" >
				 <input id="rsaPwd" name="rsaPwd" type="hidden"/>
				 <span class="icon_user2"></span>
				<p id="pwdMsg" class="err_tips" style="display:none;">请输入登录密码！</p>
				<p id="loginErrorMsg" class="err_tips" style="display:none;"></p>	
			</li>
			<li>
				<div id="liPwd">
				<!-- 加载验证码数据 -->
				</div>
			</li>
			<li style="padding-top:16px;"><a href="javascript:void(0);" onclick="javascript:checkLogin();" class="login_bth input_text">登录</a></li>
		</ul>
		<p class="zc_wz">
	        <!-- <a href="${root}/userAction_toFirstLogin.action" style="color:red">首次登录</a><span
				class="login_pd5">|</span> -->
			<a href="${root}/userAction_toEditAccName.action" style="color:red">修改账号</a><span
				class="login_pd5">|</span>
			<a href="${root}/userAction_toRegister.action">注册账号</a><span
				class="login_pd5">|</span><a
				href="${root}/userAction_toForgetPwd.action" class="blue0">忘记密码</a>
		</p>
		<s:token />
		<!-- <p class="zc_view"><a href="http://www.365sji.com/note/" target="_blank" class="orange">账号系统升级后，账号登录不了请点此查询</a></p> -->
	</div>
</div>
<div class="pop_up_bg_take dis_no"></div> 
  
<script type="text/javascript" src="http://v3.jiathis.com/code/jia.js?uid=1936773" charset="utf-8"></script>
<script type="text/javascript">
$(function(){
	 $('#tab_news li').click(function(){
		  var i = $(this).index();
		  $('#tab_news li').removeClass('fli').eq(i).addClass('fli');
		  $('#tab_con_news > div').removeClass('fdiv').eq(i).addClass('fdiv');
	 });
     // 初始化评论列表
	 commentListInit("newsCommentAction_getCommentList.action",1,10);
 });
 
//分享
var jiathis_config={
	data_track_clickback:true,
// 	url:"http://www.baidu.com/",
	title:$("#title").html(),
	summary:$("#summary").html(),
	//shortUrl:true,
	hideMore:false
};
</script>

<script type="text/javascript">
$(function(){
	 $(document).keydown(function(event){
	    if(event.keyCode==13){
	    	checkLogin();
	    }
  });
});

$(function(){	
  $('.btn_red').on('click', function(){
		//验证用户是否已经登录
		/* if($("#userId").val() == null || $("#userId").val() == "" || $("#userName").val()==null || $("#userName").val()==""){
	    	$('.popup_take').show();
			$('.pop_up_bg_take').show();
			return;
		}else{
	    	$('.popup_take').hide();
			$('.pop_up_bg_take').hide();
		} */
	}); 
   $('.close').on('click', function(){
		$('.popup_take').hide();
		$('.pop_up_bg_take').hide();
		closeMessage();
	});
});

$(function() {
	var temp = '${userRegister.accName}';
	$("#pwd").val("");
	if(temp!=''){
		$("#accName").val('${userRegister.accName}');
		$("#accNametip").hide();
		$("#accName").val("");
		$("#accName").show();
		$("#accName").focus();
		
	}
	$("#pwdtip").focus(function(){
	
		$("#pwdtip").hide();
		$("#pwd").val("");
		$("#pwd").show();
		$("#pwd").focus();
		$("#pwdMsg").hide();	
	});
	$("#accNametip").focus(function(){
	
		$("#accNametip").hide();
		$("#accName").show();
		$("#accName").focus();
		$("#nameMsg").hide();	
	});

	//获取登录错误信息
	var loginerrormsg='${errorMsg}';
	var isshowdialogcode='${showDialogCode}';
	if(loginerrormsg!=""){
		$("#accName").val('${userRegister.accName}');
		$("#pwdMsg").show();
		$("#pwdMsg").text(loginerrormsg);
		//显示验证码
		if("true"==isshowdialogcode){
			showCheckCodeDialog();
		}
	}
});

//点击关闭按钮
function closeMessage(){
	$("#pwd").val('');
	$("#pwd").hide('');
	$("#pwdtip").show();
	$("#accName").val('');
	$("#accName").hide('');
	$("#accNametip").show();
	$("#pwdMsg").hide();
}
//隐藏登录名提示
	function hideNameLable(){
		var name=$("#accName").val();
		if(name==""){
			return;
		}
		$("#nameMsg").hide();
		$("#pwdMsg").hide();
	}
	//隐藏密码提示
	function hidePwdLable(){
		var pwd=$("#pwd").val();
		if(pwd==""){
			return;
		}
		$("#pwdMsg").hide();
	}
	//点击更换首页验证码	
	function switchCodeDialog(){ 
		$("#dialogValidateCode").attr("src",ctx_root+ "/code.jsp?" + new Date());
	}
	
	//用户密码输入错误3次时将要求输入验证码
	function showCheckCodeDialog(){
		var appendLocation = $("#liPwd");
		var htmlstr='';
		appendLocation.empty();// 清空数据显示部分
		//htmlstr=htmlstr+"<li class='login_input'>";
		htmlstr=htmlstr+"<input id='dialogCodetip' type='text' maxlength='4' class='code v' value='验证码'/>";
		htmlstr=htmlstr+"<input name='dialogCode' id='dialogCode' type='text' maxlength='4' class='code v' style='display:none' onblur='dialogCodetipfun()'/>";
		htmlstr=htmlstr+"<img src='"+ctx_root+"/code.jsp?=" + new Date() + "' id='dialogValidateCode' title='点击更换'  onclick='switchCodeDialog();' width='86' height='40' alt='验证码' class='ver_code v' />";
		htmlstr=htmlstr+"<a href='javascript:void(0)' class='img_refresh v' onclick='switchCodeDialog();' title='点击更换验证码'></a>";
		//htmlstr=htmlstr+" </li>";
		appendLocation.append(htmlstr);//追加数据
		$("#dialogCodetip").focus(function(){
			$("#dialogCodetip").hide();
			$("#dialogCode").show();
			$("#dialogCode").focus();
			$("#pwdMsg").hide();
		
		});
	}
	
	function pwdtipfun(){
		if($("#pwd").val() == ''){
			$("#pwd").hide();
			$("#pwdtip").show();			
		}
	}
	function accNametipfun(){
		if($("#accName").val() == ''){
			$("#accName").hide();
			$("#accNametip").show();	
		}
	}
	function dialogCodetipfun(){
	
		if($("#dialogCode").val() == ''){
			$("#dialogCode").hide();
			$("#dialogCodetip").show();			
		}
	}
	
	
</script>
</body>
</html>
